<template>
  <div>
    <form action="http://www.itcast.cn">

<input type="text">

<button @click.prevent.stop="fn">提交</button>

</form>
   </div>
</template>
 
<script>
export default {

  data() {
    return {

    };
  },

  methods: {
    fn(e) { console.log(e);
    }
  }
};
</script>

<style scoped>
     
</style>